package com.iamback.dy.mapper;

import java.util.List;
import java.util.Map;

import com.iamback.dy.entity.Resource;

public interface ResourceMapper {
	
	public List<Resource>  findResourceByPage(Map<String , Object> map);
	public Integer findResourceByPageCount(Map<String , Object> map);
	
	public List<Resource> findResource(Map<String , Object> map);

	public Resource findResourceById(Integer id);
	public void saveResource(Resource resource);
	public void updateResource(Resource resource);
	public List<Resource> findResourceByRole(Integer roleId);
	public void deleteResourceById(Integer id);
}
